module ArticlesHelper
	
	def ban_image(article)
		html = []
		
		cat = current_top_category(article.category)
		
		if article.permalink =~ /contact|mentions-legales|kontakte|impressum/
			html << "<img src='../images/pictures/2413042_small.jpg' />"
		else 
			unless cat.nil?
				if cat.permalink =~ /entreprise|unternehmen/
					html << "<img src='../images/pictures/1523118_small.jpg' class='middle' />"
				elsif cat.permalink =~ /candidat|bewerber/
					html << "<img src='../images/pictures/5056574_small.jpg' class='middle' />"
				elsif cat.permalink =~ /deontologie/
					html << "<img src='../images/pictures/5526365_small.jpg' class='middle' />"
				else
					html << "<img src='../images/pictures/283222_small.jpg' />"
				end
			else
				html << "<img src='../images/pictures/283222_small.jpg' />"
			end
		end
		
		
		
	end
	
end
